
#include <stdlib.h>
#include <stdio.h>
#include "../model/req.h"

typedef struct {
    char package[400];
    sockaddr_in addr;
    short prox;
} tFifo;

short calcBs(short pos);
short calcPos(short x);
void addInicio(tFifo aux, FILE *file, short pos);
void addFinal(tFifo aux, FILE *file);
void addMeio(tFifo aux, short pos, FILE *file);
void addFifo(char nomeArquivo[], char entra[], sockaddr_in cliente);
void initFifo(char nomeArquivo[]);
tFifo *removeFifo(char nomeArquivo[]);



